﻿using System.ComponentModel.DataAnnotations;
using Orchard.ContentManagement;
using Orchard.ContentManagement.Records;

namespace Clippy.Models
{
    public class ClippyPartRecord : ContentPartRecord
    {
        public virtual string Text { get; set; }
    }

    public class ClippyPart : ContentPart<ClippyPartRecord>
    {
        [Required]
        public string Text
        {
            get { return Record.Text; }
            set { Record.Text = value; }
        }
    }
}